package com.buba.user.feign;

import com.buba.pojo.record.Record;
import com.buba.user.feign.fallback.PayFeignFallback;
import com.buba.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Title: PayFeign
 * @Description: TODO
 * @Auther: 梁玉杰
 * @Version: 1.0.0
 * @Date: 2022/6/15 16:22
 */
@FeignClient(value = "service-record", contextId = "XXXX1",fallback = PayFeignFallback.class)
public interface PayFeign {

    //这里的@RequestBody 可以省略，但被调用方的@RequestBody 不能省略
    @RequestMapping(value = "/record/record/record/paytoRecord",method = RequestMethod.POST)
    public R paytoRecord(@RequestBody Record record);



}
